package com.hidt.shop.service.impl;

import com.hidt.shop.domain.Evaluate;
import com.hidt.shop.mapper.EvaluateMapper;
import com.hidt.shop.service.EvaluateService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class EvaluateServiceImpl implements EvaluateService {

    @Autowired
    private EvaluateMapper evaluateMapper;

    /***
     *@methodName add_evaluate
     *@方法功能描述
     *@params
     *@return int
     *@exception
     *@author $風~$
     *@Date 2021/2/24
     */
   public int  add_evaluate (Map map){
       int i = evaluateMapper.add_evaluate(map);
       return  i;
   }

    /***
     *@methodName update_evaluate
     *@方法功能描述
     *@params
     *@return int
     *@exception
     *@author $風~$
     *@Date 2021/2/24
     */
    public  int update_evaluate(Map map){
        int i = evaluateMapper.update_evaluate(map);
        return i;
    }

    /***
     *@methodName select_evaluate
     *@方法功能描述
     *@params
     *@return java.util.List<com.hidt.shop.domain.Evaluate>
     *@exception
     *@author $風~$
     *@Date 2021/2/24
     */
    public  List<Evaluate> select_evaluate(Map map){
        List<Evaluate> evaluateList = evaluateMapper.select_evaluate(map);
        return evaluateList;
    }
}
